package com.ruoqing.core.annotation;

import com.ruoqing.core.config.MybatisPlusConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

import java.lang.annotation.*;

/**
	* @author YaoXian
	* @title: EnableCustomConfig
	* @projectName ruoxi-blog
	* @description: 若兮微服务 - 核心模块 - 通用注解集中自定义配置
	* @date 2020-12-09 20:52
	*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableAspectJAutoProxy(exposeProxy = true) //此注解代表开启注解版AOP功能
@MapperScan("com.ruoqing.**.dao") //此注解代表指定MyBatis扫包路径
@EnableAsync(proxyTargetClass = true) //此注解代表能够开启多线程异步处理
@Import({MybatisPlusConfig.class}) //此注解代表自动加载配置类(MyBatis分页插件)
public @interface EnableCustomConfig {
}
